body{
margin:0px auto;
}
.div {
width: 300px;
height: 300px;
background-color: red;
position: relative;
-webkit-animation-name: example;
-webkit-animation-duration: 4s;
-webkit-animation-delay: 2s;
animation-name: example;
animation-duration: 4s;
animation-delay: 2s;
border-radius:50%;
padding:100px;
animation-iteration-count: infinite;
text-align:center;
}
@-webkit-keyframes example {
0% {background-color:red; left:0px; top:0px;transform:rotate(90deg)}
25% {background-color:yellow; left:200px; top:0px;transform:rotate(180deg)}
50% {background-color:blue; left:200px; top:200px;transform:rotate(270deg)}
75% {background-color:green; left:0px; top:200px;transform:rotate(360deg)}
100% {background-color:red; left:0px; top:0px;transform:rotate(360deg)}
}